package cn.iocoder.yudao.framework.qrcode.pojo;

import cn.iocoder.yudao.framework.qrcode.enums.QrCodeTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  订单核销码，用于线下实体门店商家或店铺扫码核销用户的线上订单
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/01/04
 */
@Tag(name = "订单核销码")
@Data
public final class QrCodeVerifyType implements QrCodeDataType {
    @Schema(description = "核销码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String verifyCode;

    @Schema(description = "二维码类型：verify", requiredMode = Schema.RequiredMode.REQUIRED)
    @Override
    public String getType() {
        return QrCodeTypeEnum.VERIFY.getCode();
    }

    @Override
    public String toParameter() {
        return "type=" + getType() + "&verifyCode=" + getVerifyCode();
    }

}
